package com.goods.business.mapper;

import com.goods.common.model.business.Supplier;
import com.goods.common.vo.business.SupplierVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface SourceMapper extends Mapper {

    List<Supplier> findSupplierList(@Param("name") String name,@Param("address") String address,@Param("contact") String contact);

    /**
     * 添加物资来源信息
     * @param supplierVO
     * @return
     */
    void insertSupplier(SupplierVO supplierVO);

    /**
     * 删除物资来源信息
     * @param id
     * @return
     */
    void delete(Long id);

    /**
     * 修改物资信息数据回显
     * @param id
     * @return
     */
    Supplier getById(Long id);

    void update(SupplierVO supplierVO, Long id);
}
